package com.ysd.lis.controller.sta;


import com.ysd.common.Result;
import com.ysd.lis.controller.pub.BaseController;
import com.ysd.lis.entity.sta.StaStainingMethod;
import com.ysd.lis.request.Params;
import com.ysd.lis.service.sta.StaStainingMethodService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;


/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author wanghuaixing
 * @since 2025-01-17
 */
@RestController
@RequestMapping("/sta/staining/method")
public class StaStainingMethodController extends BaseController {
    @Autowired
    StaStainingMethodService staStainingMethodService;

    @ApiOperation("查询")
    @GetMapping("/findStainingMethodList")
    public Result findStainingMethodList(Params params) {
        return staStainingMethodService.findStainingMethodList(params);
    }

    @ApiOperation("批量修改")
    @PostMapping("/batchSaveStainingMethod")
    public Result batchSaveStainingMethod(@RequestBody List<StaStainingMethod> staStainingMethodList) {
        return staStainingMethodService.batchSaveStainingMethod(staStainingMethodList);
    }

    @ApiOperation("批量删除")
    @PostMapping("/batchDeleteStainingMethod")
    public Result batchDeleteStainingMethod(@RequestBody List<StaStainingMethod> staStainingMethodList) {
        return staStainingMethodService.batchDeleteStainingMethod(staStainingMethodList);
    }

}
